import {
  Controller,
  Get,
  Post,
  Body,
  Param,
  Delete,
  Put,
  Query,
} from '@nestjs/common';
import { StatisticsService } from './statistics.service';

@Controller('Statistics')
export class StatisticsController {
  constructor(private readonly statisticsService: StatisticsService) {}

  @Post('index')
  create(@Body() createData) {
    return this.statisticsService.StaticIndex(createData.timeArr);
  }
}
